Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding option to check backend health via TLS #699

Merged
merged 2 commits into from
Aug 10, 2024

Conversation

schmidtsv
Copy link
Contributor

Hello haproxy people,

CF Gorouter wants to switch to TLS healthchecks. I tested out if the HAProxy works with it. I found the issue that unless you tell it explicitly to only use TLS for health checks it will run into TLS issues (namely not using it). THis PR aims to add an option to enable check-ssl (https://docs.haproxy.org/2.4/configuration.html#5.2-check-ssl) to the release.

I tested it working by hand originally on our staging and made a PR to replicate the setup with the bosh release. The Linter and test suite are green and without complaints. I also added a simple test for the property.

@schmidtsv schmidtsv requested review from CFN-CI and a team as code owners August 6, 2024 14:12
maxmoehl
maxmoehl previously approved these changes Aug 7, 2024
Copy link
Member

@maxmoehl maxmoehl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a minor nit-pick, I'm approving now to run the CI.

jobs/haproxy/spec Show resolved Hide resolved
@maxmoehl maxmoehl added the run-ci Allow this PR to be tested on Concourse label Aug 7, 2024
@maxmoehl
Copy link
Member

maxmoehl commented Aug 7, 2024

As a side-note: for our environments we decided to stick to non-TLS health-checks to reduce the amount of TLS handshakes which need to be performed and save some resources. But it's always good to offer the option for those that want it!

@schmidtsv
Copy link
Contributor Author

We are at evaluating the impact of TLS checks at the moment. Though generally its probably a good idea to offer it at least, even if most people won't use it right now.

As once caveat you either need to resign the health cert for the Gorouter with the router-ca or tell haproxy both router and service_cf_internal_ca. (for whoever comes in 3 years debugging heir ssl error).

@maxmoehl maxmoehl merged commit 4843c6e into cloudfoundry:master Aug 10, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-ci Allow this PR to be tested on Concourse
Development

Successfully merging this pull request may close these issues.

2 participants